Skip to content

fix(prompts): respect directory option in path prompt#483

Merged
43081j merged 3 commits intomainfrom
fix/directory-option-bug
Mar 9, 2026
Merged

fix(prompts): respect directory option in path prompt#483
43081j merged 3 commits intomainfrom
fix/directory-option-bug

Conversation

@dreyfus92
Copy link
Member

@dreyfus92 dreyfus92 commented Mar 9, 2026

this pr fixes the path prompt so directory: true behaves correctly: directory mode now keeps directories selectable for navigation while filtering out files, and default mode still allows file selection as before. i also added regression tests in packages/prompts/test/path.test.ts to cover both directory-only and default file-selection behavior so this doesn’t slip again.

closes: #476

@changeset-bot
Copy link

changeset-bot bot commented Mar 9, 2026

🦋 Changeset detected

Latest commit: ee5482a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@clack/prompts Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@43081j 43081j merged commit 134a1a1 into main Mar 9, 2026
5 checks passed
@43081j 43081j deleted the fix/directory-option-bug branch March 9, 2026 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] path option directory not work

2 participants